#include <iostream>
#include <string>
#include<unordered_map>
using namespace std;

int main()
{
    const int SIZE = 10000;
    int ar[SIZE] = {0};
    for (int i = 0; i < SIZE;i++)
    {
        ar[i] = rand();
    }
    unordered_map<int, int> map;
    for(int val:ar)
    {
        map[val]++;
    }
    for(auto pair:map)
    {
        if(pair.second>1) cout << "数字：" << pair.first << " 出现的次数：" << pair.second << endl;
    }
    return 0;
}